package logic;

import java.io.Serializable;
import java.util.ArrayList;

public class Book extends Object implements Serializable{
	
	public final static int BOOK_COPY_AVAILABLE = 1;
	public final static int BOOK_COPY_NOT_AVAILABLE = 0;
	
	
	public final static String CATEGORY_MATH = "Mathematics";
	public final static String CATEGORY_ARCHITECTURE = "Architecture";
	public final static String CATEGORY_ELECTRONICS = "Electronics & Electricity";
	public final static String CATEGORY_BIOTECHNOLOGY = "Biotechnology";
	public final static String CATEGORY_BUILDING_ENGINEERING = "Building Engineering";
	public final static String CATEGORY_TEACHING = "Teaching";
	public final static String CATEGORY_SOFTWARE_ENGINEERING = "Software Engineering";
	public final static String CATEGORY_MECHANICAL_ENGINEERING = "Mechanical Engineering";
	public final static String CATEGORY_INDUSTRIAL_ENGINEERING = "Industrial Engineering";
	public final static String CATEGORY_FINANCE = "Finance";
	public final static String CATEGORY_HUMAN_RESOURCES = "Human Resources";
	
	
	
//TODO document
	
	
	private static final long serialVersionUID = 1L;
	private int BID;
	private String name;
	private int edition;
	private String printDate;
	private String purchaseDate;
	private int copies;
	private String description;
	private String location;
	private String bookIndex;
	private int availableCopies;
	private int hotBook;
	private ArrayList<String> categories;
	private String nextBook;
	private ArrayList<String> authors;
	

	public Book(int BID,String name,int edition,String printDate,String purchaseDate,int hotBook,int copies, 
			int availableCopies, String description,String location,String bookIndex,ArrayList<String> categories,String nextBook,ArrayList<String> authors) {
		
		this.BID = BID;
		this.name = name;
		this.edition = edition;
		this.printDate = printDate;
		this.purchaseDate = purchaseDate;
		this.copies = copies;
		this.description = description;
		this.location = location;
		this.bookIndex = bookIndex;
		this.availableCopies = availableCopies;
		this.hotBook = hotBook;
		this.categories = categories;
		this.nextBook = nextBook;
		this.authors = authors;
	}
	
	
	
	public int getBID() {return this.BID;}
	public String getname() {return this.name;}
	public int getedition() {return this.edition;}
	public String getprintDate() {return this.printDate;}
	public String getpurchaseDate() {return this.purchaseDate;}
	public int getcopies() {return this.copies;}
	public String getdescription() {return this.description;}
	public String getlocation() {return this.location;}
	public String getbookIndex() {return this.bookIndex;}
	public int getavailableCopies(){return this.availableCopies;}
	public int gethotBook(){return this.hotBook;}
	public ArrayList<String> getcategories(){return this.categories;}
	public String getnextBook(){return this.nextBook;}
	public ArrayList<String> getAuthors(){return this.authors;}
	public long getserialVersionUID(){return serialVersionUID;}
}
